/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86155
 * date: 2024-03-03
 * Time: 12:56
 *
 * @author 封装
 */


public class Testfengzhuang {
    public static void main(String[] args) {
        Person person = new Person();
        person.setName("bit");
        System.out.println(person.getName());
    }
}
class Person{
    private String name;
    public int age;


    public void show(){
        System.out.println(name+age);
    }
    public void setName(String name){
        this.name = name;
    }
    public String getName(){
        return this.name;
    }

    public static void main(String[] args) {
        Person person = new Person();
        person.name = "bit";
    }
}
